package cn.class2.demo6

/**
  * Created by lzd on 2018/11/14.
  * 元组匹配
  */
object Demo5 {
  def main(args: Array[String]): Unit = {
    val tup = (2, 5, 7)
    tup match {
      case (1, x, y) => println(x, y)
      case (_, a, 7) => println(a)
      case _ => println("no ...")
    }
  }
}
